#include "dialog.h"
#include "LoginDialog.h"
#include <QApplication>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    Dialog w;
    w.hide();
    LoginDialog login;
    login.show();
    QObject::connect(&login,SIGNAL(sclose(QString)),&w,SLOT(sshow(QString)));
    return a.exec();
}
